#ifndef MYTASK_H
#define MYTASK_H

#include <QObject>
#include <QRunnable>
#include <QSqlDatabase>

class MyTask : public QObject,public QRunnable
{
    Q_OBJECT
public:
    explicit MyTask(QObject *parent = nullptr);
    void setSql(QSqlDatabase *sql);
    void run();

    QSqlDatabase *sql;

signals:

};

#endif // MYTASK_H
